package itheima.d09;

public class Test {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        StringBuilder sb1 = new StringBuilder("hello");

        sb.append("18");
        sb.append("hello");
        sb.append("world");
        sb.append(1.5);
        sb.append(true);
        sb.append("nima").append("nima");

        String date=sb.toString();
        System.out.println(date);
        System.out.println(sb.length());

        StringBuffer sb2 = new StringBuffer();
        StringBuffer sb3 = new StringBuffer("hello");
        sb2.append("18");
        sb2.append("hello");

        sb2.append("world");


    }
}
